package com.mine.dao;

import com.mine.pojo.Meal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface MealMapper {

    List<Meal> queryAllMeal();

    Meal getMealById(int id);

    List<Meal> queryBargainpriceMeal();

    List<Meal> shopList(@Param("s") String s,@Param("s1") Integer s1,@Param("s2") Integer s2,@Param("select_name") String select_name);

    void addMealCollect(Integer meal_id);

    void overMealCollect(Integer meal_id);

    void updateMealInformation(Meal meal);

    void addMealInformation(Meal meal);

    void remove_meal(String meal_id);
}
